package cn.zmwh.bbs.modules.bbs.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 文件信息
 * </p>
 *
 * @author dmzmwh
 * @since 2025-07-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("forum_article_attachment")
@ApiModel(value="ForumArticleAttachment对象", description="文件信息")
public class ForumArticleAttachment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "文件ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "文章ID")
    private String articleNo;

    @ApiModelProperty(value = "用户id")
    private Long uid;

    @ApiModelProperty(value = "文件大小")
    private Long fileSize;

    @ApiModelProperty(value = "文件名称")
    private String fileName;

    @ApiModelProperty(value = "下载次数")
    private Integer downloadCount;

    @ApiModelProperty(value = "文件路径")
    private String filePath;

    @ApiModelProperty(value = "文件类型")
    private Integer fileType;

    @ApiModelProperty(value = "下载所需积分")
    private Integer integral;


}
